appliance: Fix searching for shared libraries on usr-merged Debian systems
authorHilko Bengen <bengen@debian.org>
Tue, 31 Aug 2021 15:00:10 +0000 (17:00 +0200)
committerHilko Bengen <bengen@debian.org>
Mon, 20 Sep 2021 20:58:15 +0000 (21:58 +0100)
commit0a363148b39fa34c1c9c6e41734622fe77445094
tree6db260d56395699f033fd18298626b5867cf05a4
parent560bc820e1c664fddef8bdf392c40509b8055f52
appliance: Fix searching for shared libraries on usr-merged Debian systems

If /lib is a symlink to usr/lib, paths to shared libraries as
determined by ld.so may differ from dpkg's file lists.

We turn the filename search pattern into a glob expression by
prefixing it with a '*', so the required packages are found again:

$ dpkg -S /lib/x86_64-linux-gnu/libpcre2-8.so.0
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libpcre2-8.so.0
$ dpkg -S */lib/x86_64-linux-gnu/libpcre2-8.so.0
libpcre2-8-0:amd64: /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0

Gbp-Pq: Name 0021-appliance-Fix-searching-for-shared-libraries-on-usr-.patch
appliance/Makefile.am